const mongooses=require('mongoose')
mongooses.connect('mongodb://127.0.0.1:27017/lianxivue2demo')
const conn=mongooses.connection
conn.on('open',()=>{
    console.log("连接成功");
})
conn.on('error',(error)=>{
    console.log(error);
})
module.exports=mongooses